<?php
$T->loadTpl("./html/".$template."/".$qname.".html");
$T->SetTpl('cssjs','html/cssjs.inc'); 
$T->SetTpl('jsmodel','html/jsmodel.inc');     
  
$uid = $_SESSION['uid'];
$T->Set("uid",$uid);
$T->SetBlock("types","select id,name from sys_schedule_type order by odx");
$id=isset($_GET["id"])?$_GET["id"]:'';
$start=isset($_GET["start"])?$_GET["start"]:'';
if($id)$T->readDB("select * from sys_schedule where id=".$id);
if($start)$T->Set("start",$start);
        
$T->Set("template",$template);         
$T->clearNaN();       
$T->clearNoN();
$T->display(); 